/*
 * FloatMap.h
 *
 *  Created on: Oct 5, 2012
 *      Author: burek
 */

#ifndef FLOATMAP_H_
#define FLOATMAP_H_

#include "integers.h"

struct FloatMap
{
	float *data;
	Uint32 width;
	Uint32 height;

	FloatMap(Uint32 Width, Uint32 Height);
	~FloatMap();

	void pset(Uint32 x, Uint32 y, float texel);
	float pget(Uint32 x, Uint32 y) const;
	float singleSample(float x, float y) const;
	float reSample(float x, float y, float multi, float intensity) const;

	float getMin() const;
	float getMax() const;

	void clear();
};

#endif /* FLOATMAP_H_ */
